import request from '@/utils/request'

// 查询列表
export function noticeList(query) {
  return request({
    url: '/data/wechat/notice/',
    method: 'get',
    params: query
  })
}

// 新增
export function addData(data) {
  return request({
    url: '/data/wechat/notice/',
    method: 'post',
    data:data
  })
}
//编辑
export function updateData(data) {
  return request({
    url: '/data/wechat/notice/',
    method: 'put',
    data
  })
}

//删除
export function delData(id) {
  return request({
    url: '/data/wechat/notice/' + id,
    method: 'delete',
  })
}

//查询
export function getDetail(id) {
  return request({
    url: '/data/wechat/notice/' + id,
    method: 'get',
  })
}
